﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DemoTest.Bll.Handlers;
using DemoTest.Bll.Models;
using Nido.Common.BackEnd;

namespace DemoTestApplication.UserControls
{
    public partial class DisplayTableView : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CourseViewHandler handler = new CourseViewHandler();
            GenericResponse<IEnumerable<CourseView>> response = handler.GetAllGenericFromCache();
            if (response.Successful)
            {
                this.GridView1.DataSource = response.Result.ToArray();
                this.GridView1.DataBind();

                #region Commneted
                /*StudentCombo1.DataBind();
                StudentCombo2.DataBind();
                StudentCombo3.DataBind();
                StudentCombo4.DataBind();*/
                #endregion
            }
        }
    }
}